package rateexchange.shared;

import java.util.List;

import rateexchange.server.Rate;
import com.google.gwt.requestfactory.shared.InstanceRequest;
import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.RequestContext;
import com.google.gwt.requestfactory.shared.Service;

@SuppressWarnings("deprecation")
@Service(Rate.class)
//Defines server-side methods for the client-side
public interface RateRequest extends RequestContext{
	//Instanserequest is used in case of instance methods that operate on an entity itself, like persist() and remove() 
	InstanceRequest<RateProxy,Void> persist();
	
	Request<List<RateProxy>> listRates();
	
	Request<Integer> countRates();
	
	Request<List<RateProxy>> findRates(int first, int max);

}